<!--conf
<sample>
               <product version="1.6" edition="std"/>
                       <modifications>
                               <modified date="070101"/>
                       </modifications>
               </sample>
 --> 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Tab Order and Readonly Cells</title>
	
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
</head>

<body>
	
	<h1>Tab Order and Readonly Cells</h1>
	<p>enableEditTabOnly method allows to navigate between editable cells only.<br/>
	Using setExternalTabOrder method you can set external elements which get focus when tab|tab+shift is pressed in the last|first cell.</p>
	<table><tr><td>
	<input type="text" id="elem1" value="start" size="20">   </td></tr>
	<tr><td><div id="gridbox" style="width:400px; height:270px; background-color:white;"></div></td></tr>
	<tr><td><input type="text" id="elem2" value="end" size="20"> </td></tr>	
<tr><td>
	<a href="javascript:void(0)" onClick="mygrid.enableEditTabOnly(true);">enable</a>  |   <a href="javascript:void(0)" onClick="mygrid.enableEditTabOnly(false);">disable</a>  EditTabOnly
	</td></tr>	
	</table>
<script>
	mygrid = new dhtmlXGridObject('gridbox');
	mygrid.setImagePath("../../../codebase/imgs/");
	mygrid.setHeader("Column A, Column B, column c");
	mygrid.setInitWidths("100,150,*")
	mygrid.setColAlign("right,left,left,left")
	mygrid.setColTypes("ro,ed,ed");
	mygrid.setColSorting("int,str,str")
	mygrid.enableMultiselect(true)
	mygrid.enableEditTabOnly(1);
	mygrid.setExternalTabOrder("elem1","elem2")
	mygrid.init();
	mygrid.setSkin("dhx_skyblue");
	mygrid.loadXML("../common/grid.xml");
</script>

</body>
</html>
